//
//  HDAdressProvinceModel.m
//  AccountEasy
//
//  Created by 黄志刚 on 2020/8/14.
//  Copyright © 2020 AccountEasy. All rights reserved.
//

#import "HDAdressProvinceModel.h"
#import "HDAdressCityModel.h"

@implementation HDAdressProvinceModel
- (instancetype)initWithDictionary:(NSDictionary *)dict{
    if (self = [super init]) {
        self.bank_area = dict[@"bank_area"];
        self.bank_area_code = dict[@"bank_area_code"];
        NSMutableArray *citys = [NSMutableArray array];
        for (NSDictionary *d in dict[@"city_list"]) {
            HDAdressCityModel *city = [[HDAdressCityModel alloc] initWithDictionary:d];
            [citys addObject:city];
        }
        self.city_list = citys;
    }
    return self;
}
+(NSDictionary*)mj_objectClassInArray{
    return @{@"city_list":@"HDAdressCityModel"};
}

+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"bank_area": @"provinceName", @"bank_area_code": @"provinceCode", @"city_list": @"cityLists"};
}
@end

